package hhh;

import java.util.Scanner;

public class Demo5 {
	public static void main(String[] args) {
		Scanner hei=new Scanner(System.in);
		System.out.println("��������a");
		int a =hei.nextInt();
		System.out.println("��������b");
		int b =hei.nextInt();
		System.out.println("��������c");
		int c =hei.nextInt();
		System.out.println("����ǰ��˳��Ϊ"+a+"  "+b+"  "+c);
		System.out.print("������˳��Ϊ");
		if(a<=b && a<=c) {
			System.out.print(a);
			if(b<=c){
				System.out.print("  "+b);
				System.out.print("  "+c);
			}else {
				System.out.print("  "+c);
				System.out.print("  "+b);
			}
		}else if(b<=a && b<=c){
			System.out.print(b);
			if(a<=c){
				System.out.print("  "+a);
				System.out.print("  "+c);
			}else {
				System.out.print("  "+c);
				System.out.print("  "+a);
			}
		}else {
			System.out.print(c);
			if(a<=b) {
				System.out.print("  "+a);
				System.out.print("  "+b);
			}else {
				System.out.print("  "+b);
				System.out.print("  "+a);
			}
			
		}
		
	}
}
